from pymongo import MongoClient

conn = MongoClient('localhost')
MongoClient(host='127.0.0.1', port=27017)

db = conn.test
collection = db['demo']

db.collection.insert([])